import Vue from 'vue'

let server = process.env.VUE_APP_RESTAURANTPCSERVICE;
let getdayreportUrl = '/balance/getdayreport';
let adddayreportUrl = '/balance/adddayreport';

export default{
	getdayreportService: function(paramsObj,callBack){
		Vue.axios.get(`${server}${getdayreportUrl}`,{
			params:paramsObj
		}).then(res => {
			callBack(res.data);
		})
	},
	adddayreportService: function(paramsObj,callBack){
		Vue.axios.post(`${server}${adddayreportUrl}`,paramsObj).then(res => {
			callBack(res.data);
		})
	},
}